﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Croupier_iteration_1.Model.Jeu
{
    public class Carte : IComparable
    {
        Couleur Couleur { get; set; }
        Visuel Visuel { get; set; }

        public int CompareTo(object obj)
        {
            var carte = obj as Carte;
            int valReturn = -1;
            
            if (carte != null&&  Couleur == carte.Couleur && Visuel == carte.Visuel)
                valReturn = 0;
            

            return valReturn;
        }
    }
}
